#!/bin/sh
CMD=$($* | trim)
printf "%s\n" "$CMD"
printf "%s" "$CMD" | pbcopy

